﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;

namespace Xpom_Xpum__Code_Generator.Utilities
{
    public class FileSystem
    {
        public static void CopyDirectoryContent(string source, string dest)
        {
            foreach (string dirPath in Directory.GetDirectories(source, "*",
                    SearchOption.AllDirectories))
                Directory.CreateDirectory(dirPath.Replace(source, dest));

            foreach (string filePath in Directory.GetFiles(source, "*.*",
                    SearchOption.AllDirectories))
                File.Copy(filePath, filePath.Replace(source, dest), true);
        }
    }
}
